package com.cloud.gateway.rsp;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author kangwen
 */
@Data
@NoArgsConstructor
public class Rsp {
	int code;
	String msg;

	public Rsp(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public Rsp(RspCode rspCode) {
		this.code = rspCode.code();
		this.msg = rspCode.msg();
	}
}
